package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 病人观察项目配置表
 * </p>
 *
 * @author zqb
 * @date 2024-07-26 10:31:53
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_obsv_pt_cfg")
public class BObsvPtCfg extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 标识,或即观察标识，说明：为生命特征指标编码如spo2
     */
    @TableField(value = "obsv_code", condition = LIKE)
    @Schema(description = "标识,或即观察标识，说明：为生命特征指标编码如spo2")
    private String obsvCode;
    /**
     * 观察项类型，说明：取数据字典name值
     */
    @TableField(value = "obsv_type", condition = LIKE)
    @Schema(description = "观察项类型，说明：取数据字典name值")
    private String obsvType;

    /**
     * 是否可见 0-否，1-是，默认是1
     */
    @TableField(value = "is_visible", condition = EQUAL)
    @Schema(description = "是否可见 0-否，1-是，默认是1")
    private Integer isVisible;
    /**
     * 是否删除 0-否，1-是，默认是0
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除 0-否，1-是，默认是0")
    private Integer isDeleted;
    /**
     * 删除时间
     */
    @TableField(value = "delete_time", condition = EQUAL)
    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;
    /**
     * 排序用时间，记录的是实时修改时间
     */
    @TableField(value = "sort_time", condition = EQUAL)
    @Schema(description = "排序用时间，记录的是实时修改时间")
    private Long sortTime;
    /**
     * 观察项id
     */
    @TableField(value = "obsv_id", condition = EQUAL)
    @Schema(description = "观察项id")
    private Long obsvId;
    /**
     * 标识单位，如血压的单位为：mmHg 
     */
    @TableField(value = "prop_unit", condition = LIKE)
    @Schema(description = "标识单位，如血压的单位为：mmHg")
    private String propUnit;
    /**
     * 参考范围下限
     */
    @TableField(value = "ref_lower", condition = EQUAL)
    @Schema(description = "参考范围下限")
    private BigDecimal refLower;
    /**
     * 参考范围上限
     */
    @TableField(value = "ref_upper", condition = EQUAL)
    @Schema(description = "参考范围上限")
    private BigDecimal refUpper;
    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;



}
